package com.sxt.service.impl;

import com.sxt.domain.MyResult;
import com.sxt.mapper.UserMapper;
import com.sxt.pojo.User;
import com.sxt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public MyResult userLogin(String username, String password) {
        return MyResult.ok(userMapper.selectUser(username, password));
    }
}
